Integrand size = 43, antiderivative size = 114 \[ \int \frac {(b \cos (c+d x))^{3/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac {9}{2}}(c+d x)} \, dx=\frac {b (A+2 C) \text {arctanh}(\sin (c+d x)) \sqrt {b \cos (c+d x)}}{2 d \sqrt {\cos (c+d x)}}+\frac {A b \sqrt {b \cos (c+d x)} \sin (c+d x)}{2 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {b B \sqrt {b \cos (c+d x)} \sin (c+d x)}{d \cos ^{\frac {3}{2}}(c+d x)} \]
[Out]
Time = 0.10 (sec) , antiderivative size = 114, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.140, Rules used = {17, 3100, 2827, 3852, 8, 3855} \[ \int \frac {(b \cos (c+d x))^{3/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac {9}{2}}(c+d x)} \, dx=\frac {b (A+2 C) \text {arctanh}(\sin (c+d x)) \sqrt {b \cos (c+d x)}}{2 d \sqrt {\cos (c+d x)}}+\frac {A b \sin (c+d x) \sqrt {b \cos (c+d x)}}{2 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {b B \sin (c+d x) \sqrt {b \cos (c+d x)}}{d \cos ^{\frac {3}{2}}(c+d x)} \]
[In]
[Out]
Rule 8
Rule 17
Rule 2827
Rule 3100
Rule 3852
Rule 3855
Rubi steps \begin{align*} \text {integral}& = \frac {\left (b \sqrt {b \cos (c+d x)}\right ) \int \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec ^3(c+d x) \, dx}{\sqrt {\cos (c+d x)}} \\ & = \frac {A b \sqrt {b \cos (c+d x)} \sin (c+d x)}{2 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {\left (b \sqrt {b \cos (c+d x)}\right ) \int (2 B+(A+2 C) \cos (c+d x)) \sec ^2(c+d x) \, dx}{2 \sqrt {\cos (c+d x)}} \\ & = \frac {A b \sqrt {b \cos (c+d x)} \sin (c+d x)}{2 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {\left (b B \sqrt {b \cos (c+d x)}\right ) \int \sec ^2(c+d x) \, dx}{\sqrt {\cos (c+d x)}}+\frac {\left (b (A+2 C) \sqrt {b \cos (c+d x)}\right ) \int \sec (c+d x) \, dx}{2 \sqrt {\cos (c+d x)}} \\ & = \frac {b (A+2 C) \text {arctanh}(\sin (c+d x)) \sqrt {b \cos (c+d x)}}{2 d \sqrt {\cos (c+d x)}}+\frac {A b \sqrt {b \cos (c+d x)} \sin (c+d x)}{2 d \cos ^{\frac {5}{2}}(c+d x)}-\frac {\left (b B \sqrt {b \cos (c+d x)}\right ) \text {Subst}(\int 1 \, dx,x,-\tan (c+d x))}{d \sqrt {\cos (c+d x)}} \\ & = \frac {b (A+2 C) \text {arctanh}(\sin (c+d x)) \sqrt {b \cos (c+d x)}}{2 d \sqrt {\cos (c+d x)}}+\frac {A b \sqrt {b \cos (c+d x)} \sin (c+d x)}{2 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {b B \sqrt {b \cos (c+d x)} \sin (c+d x)}{d \cos ^{\frac {3}{2}}(c+d x)} \\ \end{align*}
Time = 0.12 (sec) , antiderivative size = 69, normalized size of antiderivative = 0.61 \[ \int \frac {(b \cos (c+d x))^{3/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac {9}{2}}(c+d x)} \, dx=\frac {(b \cos (c+d x))^{3/2} \left ((A+2 C) \text {arctanh}(\sin (c+d x)) \cos ^2(c+d x)+(A+2 B \cos (c+d x)) \sin (c+d x)\right )}{2 d \cos ^{\frac {7}{2}}(c+d x)} \]
[In]
[Out]
Time = 10.29 (sec) , antiderivative size = 131, normalized size of antiderivative = 1.15
method | result | size |
default | \(\frac {b \left (A \left (\cos ^{2}\left (d x +c \right )\right ) \ln \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )+1\right )-A \left (\cos ^{2}\left (d x +c \right )\right ) \ln \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )-1\right )-4 C \left (\cos ^{2}\left (d x +c \right )\right ) \operatorname {arctanh}\left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )+2 B \sin \left (d x +c \right ) \cos \left (d x +c \right )+A \sin \left (d x +c \right )\right ) \sqrt {\cos \left (d x +c \right ) b}}{2 d \cos \left (d x +c \right )^{\frac {5}{2}}}\) | \(131\) |
parts | \(\frac {A b \left (-\left (\cos ^{2}\left (d x +c \right )\right ) \ln \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )-1\right )+\left (\cos ^{2}\left (d x +c \right )\right ) \ln \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )+1\right )+\sin \left (d x +c \right )\right ) \sqrt {\cos \left (d x +c \right ) b}}{2 d \cos \left (d x +c \right )^{\frac {5}{2}}}+\frac {b B \sin \left (d x +c \right ) \sqrt {\cos \left (d x +c \right ) b}}{d \cos \left (d x +c \right )^{\frac {3}{2}}}-\frac {2 C \sqrt {\cos \left (d x +c \right ) b}\, b \,\operatorname {arctanh}\left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right )}{d \sqrt {\cos \left (d x +c \right )}}\) | \(158\) |
risch | \(-\frac {i b \sqrt {\cos \left (d x +c \right ) b}\, \left (A \,{\mathrm e}^{3 i \left (d x +c \right )}-2 B \,{\mathrm e}^{2 i \left (d x +c \right )}-A \,{\mathrm e}^{i \left (d x +c \right )}-2 B \right )}{\sqrt {\cos \left (d x +c \right )}\, d \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )^{2}}-\frac {b \sqrt {\cos \left (d x +c \right ) b}\, \left (A +2 C \right ) \ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right )}{2 \sqrt {\cos \left (d x +c \right )}\, d}+\frac {b \sqrt {\cos \left (d x +c \right ) b}\, \left (A +2 C \right ) \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}{2 \sqrt {\cos \left (d x +c \right )}\, d}\) | \(163\) |
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 240, normalized size of antiderivative = 2.11 \[ \int \frac {(b \cos (c+d x))^{3/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac {9}{2}}(c+d x)} \, dx=\left [\frac {{\left (A + 2 \, C\right )} b^{\frac {3}{2}} \cos \left (d x + c\right )^{3} \log \left (-\frac {b \cos \left (d x + c\right )^{3} - 2 \, \sqrt {b \cos \left (d x + c\right )} \sqrt {b} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - 2 \, b \cos \left (d x + c\right )}{\cos \left (d x + c\right )^{3}}\right ) + 2 \, {\left (2 \, B b \cos \left (d x + c\right ) + A b\right )} \sqrt {b \cos \left (d x + c\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{4 \, d \cos \left (d x + c\right )^{3}}, -\frac {{\left (A + 2 \, C\right )} \sqrt {-b} b \arctan \left (\frac {\sqrt {b \cos \left (d x + c\right )} \sqrt {-b} \sin \left (d x + c\right )}{b \sqrt {\cos \left (d x + c\right )}}\right ) \cos \left (d x + c\right )^{3} - {\left (2 \, B b \cos \left (d x + c\right ) + A b\right )} \sqrt {b \cos \left (d x + c\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{2 \, d \cos \left (d x + c\right )^{3}}\right ] \]
[In]
[Out]
Timed out. \[ \int \frac {(b \cos (c+d x))^{3/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac {9}{2}}(c+d x)} \, dx=\text {Timed out} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 813 vs. \(2 (98) = 196\).
Time = 0.52 (sec) , antiderivative size = 813, normalized size of antiderivative = 7.13 \[ \int \frac {(b \cos (c+d x))^{3/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac {9}{2}}(c+d x)} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {(b \cos (c+d x))^{3/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac {9}{2}}(c+d x)} \, dx=\int { \frac {{\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A\right )} \left (b \cos \left (d x + c\right )\right )^{\frac {3}{2}}}{\cos \left (d x + c\right )^{\frac {9}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(b \cos (c+d x))^{3/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac {9}{2}}(c+d x)} \, dx=\int \frac {{\left (b\,\cos \left (c+d\,x\right )\right )}^{3/2}\,\left (C\,{\cos \left (c+d\,x\right )}^2+B\,\cos \left (c+d\,x\right )+A\right )}{{\cos \left (c+d\,x\right )}^{9/2}} \,d x \]
[In]
[Out]